package com.wenwu.dao;

import com.wenwu.common.bean.RelicsOrganization;
import com.wenwu.common.bean.RelicsOrganizationExample;
import com.wenwu.common.page.PaginationVO;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface RelicsOrganizationMapper extends Dao{
    int countByExample(RelicsOrganizationExample example);

    int deleteByExample(RelicsOrganizationExample example);

    int insert(RelicsOrganization record);

    int insertSelective(RelicsOrganization record);

    List<RelicsOrganization> selectByExample(RelicsOrganizationExample example);

    int updateByExampleSelective(@Param("record") RelicsOrganization record, @Param("example") RelicsOrganizationExample example);

    int updateByExample(@Param("record") RelicsOrganization record, @Param("example") RelicsOrganizationExample example);
    
    /**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList) throws SQLException;
	
	int updateByPrimaryKey(RelicsOrganization record) throws SQLException;
    
    List<RelicsOrganization> selectAll() throws SQLException;
    
    RelicsOrganization selectByPrimaryKey(Integer organId) throws SQLException;
    
    int updateByPrimaryKeySelective(RelicsOrganization record) throws SQLException;
    
    int selectTotalRecord(@Param("organization") RelicsOrganization organization)
			throws SQLException;
    
    List<RelicsOrganization> selectList(
			@Param("organization") RelicsOrganization organization,
			@Param("pageVo") PaginationVO pageVo) throws SQLException;
}